var timeoutA = setTimeout(function(){
    console.log('timeout A');
}, 2000);
var timeoutB = setTimeout(function(){
    console.log('timeout B');
    clearTimeout(timeoutA);
}, 1000);
process.nextTick(function(){
    console.log('nextTick');
});

function schedule(delay, callback){
	callback();
	setTimeout(function(){
		schedule(delay, callback);
	}, delay);
}
schedule(1000, function(){
	console.log("schedule");
});
